moved functions to base drawable