making it clearer with comments and printf