Add g function and delete get class and get id