authenticated funtions working