trying to get this thing to work with pins