added more functions to receptive field.cpp