adding convenient functions