fixed -1 initialization