calculation modifed