tryng to figure out bug