rename bins and readpop functions