fixed input: still needs testing