added functions for user base