fixed the push back method