padding added to cope with slow operation