changed getVolume to int