adding real pin functionality