made changes for devise