firend list problem solved but code is a mess :(