cleaned up method for attempts