Opening bracktes for simple operations
Reduction of similar function implemented