removed redundant 'return -1'