made it so it gets value from pill