copypaste mistake
changed api stucture based on feedback