using User object to control data