code is being duplicated here and on lines 46, 53