add function for bullet class