started writing pin mappings