changed from str to int