PA3 functions added