fixed input and added pullup