moved functions
moved functions