renaming type to powerup_type to avoid using a keyword.