add calc for the begining