added my own function