remove unused vars
convert renderItem to update position