Getting your security deposit back can be tricky, in particular knowing what you are liable for and what your landlord is supposed to take care of. Most leases have a clause about damage and normal wear and tear. Deposits will be deducted to pay for damages, while the landlord is responsible for fixing issues that are the result of normal wear and tear, but what is the difference?
Damage is anything major or excessive. Large holes in the walls or even a lot of tiny nail holes are considered damage. While worn paint is considered normal wear and tear. Many times the different between the two will be obvious, but other times it may not. If you are ever confused, the best bet is to ask your landlord, so there will be not issues when you move out. Just remember, you do not have to leave your apartment in the exact place when you moved in.