replaced lastPin with pin because I can now with the macro