added written working stuff for elliot